def sqlSelect(db,dbDatabase,tableName,condition,col):
    cursor = db.cursor()
    #表结构
    cursor.execute('select COLUMN_NAME from information_schema.columns where TABLE_SCHEMA="' + dbDatabase + '" and TABLE_NAME="'+ tableName +'";')
    result = cursor.fetchall()
    #'username','passwd'
    header = str(result).replace(",","").replace("(","").replace(")","").replace(" ",",")
    # print("derBug 原表头 : " + header)

    #查询数据
    #derBug
    print("derBug SQL Statement: " + 'select * ' + 'from ' + tableName + ' where ' + condition + ';')
    cursor.execute('select ' + col + ' from ' + tableName + ' where ' + condition + ';')
    body = cursor.fetchall()

    ren = {'msg':'Select Row','header':header,'body':body.__str__(),'msg_code':200}
    return ren